<?php

namespace Application\View\Helper;

use Zend\View\Helper\AbstractHelper;
// use Zend\Db\TableGateway\TableGateway;
use Application\Model\Menu;

class Menus extends AbstractHelper {
	// use \Zend\ServiceManager\ServiceLocatorAwareTrait;
	protected $data;
	function __invoke() {
		return $this->data;
	}
	public function setTable($sm, $table) {
		$this->data = $sm->get ( $table )->fetchAll();
		return $this->data;
	}
}